import React, { useState } from 'react'

export default function App() {
    const [state, setState] = useState(true)
    return (
        <div>
            <ul>
                {state ? <li>是真的</li> : <li>是假的</li>}
            </ul>
            <button onClick={() => { setState(!state) }}>点击切换</button>
        </div>
    )
}

